package cn.com.huzo.model.entities.master;

import huzofw.model.entities.BaseEntity;
import huzofw.model.entities.IAggregateRoot;
import java.io.Serializable;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 税率实体类
 *
 * @author 吴旭
 */
public class TaxRateEntity extends BaseEntity implements Serializable, IAggregateRoot {

    private static final long serialVersionUID = 2039682432694981511L;
    private Long TaxRateId;
    private String OrderNo;
    private Double TaxRate;
    private String TaxRateText;
    private String TaxRateDesc;
    private Boolean IsCurrentTaxRate;

    public Long getTaxRateId() {
        return TaxRateId;
    }

    public void setTaxRateId(Long TaxRateId) {
        this.TaxRateId = TaxRateId;
    }

    public String getOrderNo() {
        return OrderNo;
    }

    public void setOrderNo(String OrderNo) {
        this.OrderNo = OrderNo;
    }

    public Double getTaxRate() {
        return TaxRate;
    }

    public void setTaxRate(Double TaxRate) {
        this.TaxRate = TaxRate;
    }

    public String getTaxRateText() {
        return TaxRateText;
    }

    public void setTaxRateText(String TaxRateText) {
        this.TaxRateText = TaxRateText;
    }

    public String getTaxRateDesc() {
        return TaxRateDesc;
    }

    public void setTaxRateDesc(String TaxRateDesc) {
        this.TaxRateDesc = TaxRateDesc;
    }

    public Boolean getIsCurrentTaxRate() {
        return IsCurrentTaxRate;
    }

    public void setIsCurrentTaxRate(Boolean IsCurrentTaxRate) {
        this.IsCurrentTaxRate = IsCurrentTaxRate;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof TaxRateEntity)) {
            return false;
        }

        final TaxRateEntity that = (TaxRateEntity) o;

        return new EqualsBuilder()
                .append(this.getTaxRateId(), that.getTaxRateId())
                .isEquals();
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public int hashCode() {
        int result = 17;
        result = 31 * result + this.getTaxRateId().hashCode();

        return result;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
